﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace SWENAssignment
{
    public partial class retrievedUserAccDisplay : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            lblLoginID3.Text = (string)Session["loginID"];

            if (!Page.IsPostBack)
            {
                userAccount u = DBmanager.GetUserAccountByLoginID(lblLoginID3.Text);
                string loginID = (string)Session["loginID"];
                lblUserType3.Text = u.UserType;
                lblLoginID3.Text = u.LoginID;
                lblPassword3.Text = u.Password;
                lblConfirmedPassword3.Text = u.ConfirmedPassword;
                lblLastName3.Text = u.LastName;
                lblFirstName3.Text = u.FirstName;
                lblDOB3.Text = u.DateOfBirth.ToString("yyyy/MM/dd");
                lblContNum3.Text = u.ContNum.ToString();
                lblAddress3.Text = u.MailAdd;
                lblEmail3.Text = u.Email;
                lblGender3.Text = u.Gender;
                lblBankAccType3.Text = u.BankAccType;
                lblBankAccNum3.Text = u.BankAccNum.ToString();
            }

        }
    }
}